Some help to explot CVE-2016-6662
Make sure to change the attacker IP in the c file before compiling
All credit to original discoverer.
Writeups here: http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html
Discussion here: https://www.reddit.com/r/netsec/comments/52dgxh/mysql_remote_root_code_execution_privilege/
Files originally hosted here: https://legalhackers.com/exploits/CVE-2016-6662/0ldSQL_MySQL_RCE_exploit.py http://legalhackers.com/exploits/mysql_hookandroot_lib.c